<#include "../common/_layout.html" />
<@head title="编辑">
<style type="text/css">
	.cll {
		background-color: #ddd;
	}
</style>
</@head>
<@layout menu='/wechatinfo'>
<section class="content-header">
	<h1>
		${pageTitleBread.department!pageTitleBread.default!}
	</h1>
	<ol class="breadcrumb">
		<li><a href="javascript:void(0);" onclick="location.href='${ctx}${pageTitleBread.breadHomeMethod!}'">首页</a></li>
		<li><a href="javascript:void(0);" onclick="location.href='${ctx}${pageTitleBread.url!}'">${pageTitleBread.pageTitle!}</a></li>
		<li class="active">${pageTitleBread.nowBread!}</li>
	</ol>
</section>
<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<form action="${ctx}/wechatinfo/save" method="post" role="form">
					<legend>添加/修改信息</legend>
					<input type="hidden" name="id" id="id" value="${wechatInfo.id!}">
					<div class="form-group">
						<label for="name">公众号名称</label>
						<input type="text" class="form-control" id="name" name="name" placeholder="公众号名称" value="${wechatInfo.name!}">
					</div>
					<div class="form-group">
						<label for="wechat_type">公众号类型</label>
						<select name = "wechat_type" class="form-control" id="wechat_type" placeholder="公众号类型" value="${wechatInfo.wechat_type!}">
						<option value = "" disabled selected></option>
						<option value = "0" <#if wechatInfo.wechat_type??&&wechatInfo.wechat_type==0>selected="selected"</#if>>订阅号</option>
						<option value = "1" <#if wechatInfo.wechat_type??&&wechatInfo.wechat_type==1>selected="selected"</#if>>服务号</option>
						<option value = "2" <#if wechatInfo.wechat_type??&&wechatInfo.wechat_type==2>selected="selected"</#if>>企业号</option>
						
						</select>
					</div>
					<div class="form-group">
						<label for="token">TOKEN</label>
						<input type="text" class="form-control" id="token" name="token" placeholder="TOKEN" value="${wechatInfo.token!}">
					</div>
					<div class="form-group">
						<label for="aeskey">加密密钥</label>
						<input type="text" class="form-control" id="aeskey" name="aeskey" placeholder="加密密钥" value="${wechatInfo.aeskey!}">
					</div>
					<div class="form-group">
						<label for="appid">APPID</label>
						<input type="text" class="form-control" id="appid" name="appid" placeholder="APPID" value="${wechatInfo.appid!}">
					</div>
					<div class="form-group">
						<label for="appsecret">APPSECRET</label>
						<input type="text" class="form-control" id="appsecret" name="appsecret" placeholder="APPSECRET" value="${wechatInfo.appsecret!}">
					</div>
					<div class="form-group">
						<label for="status">状态</label>
						<select class="form-control" id="status" name="status" placeholder="状态" value="${wechatInfo.status!}">
							<option value = "" disabled selected></option>
							<option value = "0" <#if wechatInfo.status??&&wechatInfo.status==0>selected="selected"</#if>>未启用</option>
							<option value = "1" <#if wechatInfo.status??&&wechatInfo.status==1>selected="selected"</#if>>启用</option>
							
						</select>
					</div>
					<div class="form-group">
						<label for="mchid">微信支付商户号</label>
						<input type="number" class="form-control" id="mchid" name="mchid" placeholder="微信支付商户号" value="${wechatInfo.mchid!}">
					</div>
					<div class="form-group">
						<label for="pay_key">支付密钥</label>
                        <textarea id="pay_key" name="pay_key" class="form-control" rows="5">${wechatInfo.pay_key!}</textarea>
					</div>
					<div class="form-group">
						<label for="apiclient_cert">客户端证书</label>
                        <textarea id="apiclient_cert" name="apiclient_cert" class="form-control" rows="5">${wechatInfo.apiclient_cert!}</textarea>
					</div>
					<div class="form-group">
						<label for="apiclient_key">客户端密钥</label>
                        <textarea id="apiclient_key" name="apiclient_key" class="form-control" rows="5">${wechatInfo.apiclient_key!}</textarea>
					</div>
					<div class="form-group">
						<label for="remark">备注</label>
						<input type="text" class="form-control" id="remark" name="remark" placeholder="备注" value="${wechatInfo.remark!}">
					</div>
					<div class="form-group">
						<label for="wx_userName">微信原始ID</label>
						<input type="text" class="form-control" id="wx_userName" name="wx_userName" placeholder="微信原始ID" value="${wechatInfo.wx_userName!}">
					</div>
					<button type="submit" class="btn btn-primary">保存</button><button type="submit" class="btn btn-cancle" onclick="javascript :history.back(-1);">返回</button>
				</form>
			</div>
		</div>
	</div>
</section>
</@layout>
<@scripts>
<script type="text/javascript">
	$(document).ready(function(){

	});
</script>
</@scripts>